package org.millioncall.yueyoga.admin.dao;

import java.util.List;
import java.util.Map;

import org.millioncall.openplatform.common.PaginatedList;
import org.millioncall.yueyoga.admin.model.Status;

public interface StatusDAO {
	public int deleteByPrimaryKey(Integer id);

    public int insert(Status record);

    public int insertSelective(Status record);

    public Status selectByPrimaryKey(Integer id);

    public int updateByPrimaryKeySelective(Status record);

    public int updateByPrimaryKey(Status record);

	public List<Status> findByType(int i);

	public List<Status> findByParentCode(String code);

	public Status findByCode(String code);

	public Status findById(int id);

	public PaginatedList<Status> getStatusInPage(int i, int pageSize,
			Map<String, Object> map);

	public void deleteByIds(Integer[] deids);

	public int update(Status status);
	
	public String findCodeByTypeName(int type,String name);
}